import React from 'react'
import { HashRouter, Route, Routes, useNavigate } from 'react-router-dom'
import { useState } from 'react'
import {
  MailOutlined,
  AppstoreOutlined,
  SettingOutlined,
} from '@ant-design/icons'
import AppRoute from '@/routers/AppRouters.jsx'
import { Menu } from 'antd'
import Layout from '@/components/layout/Layout.jsx'
import AppRouter from '@/routers/AppRouters.jsx'
import './antd.css'
import { setState } from 'react'
const { SubMenu } = Menu
function App(props) {
  const [current, setCurrent] = useState(0)

  const tab = (x, path) => {
    console.log(x)
    setCurrent(x.key)
    document.location.href = '/#' + path
  }

  return (
    <div className="App">
      <AppRouter/>
    </div>
  )
}

export default App
